function getAjax(url, data) {
    let temp = null;
    $.ajax({
        url: 'http://localhost:8080' + url,
        data: data,
        type: "get",
        dataType: 'json',
        contentType:"application/json;charset=utf-8",
        async:false,
        xhrFields: {
            withCredentials: true
        },
        success: function (ddd) {
            temp = ddd;
        }
    })
    return temp;
}
function postAjax(url, data) {
    let temp = null;
    $.ajax({
        url: 'http://localhost:8080' + url,
        data: JSON.stringify(data),
        type: "post",
        dataType: 'json',
        // contentType:"application/x-www-form-urlencoded",
        contentType:"application/json;charset=utf-8",
        async:false,
        xhrFields: {
            withCredentials: true
        },
        success: function (ddd) {
            temp = ddd;
        }
    })
    return temp;
}
